<template>
    <div class="main">
        <div class="main-logo-icon" @click="double()"></div>
        <van-search shape="round" placeholder="笔记本" class="main-input" />
        <div class="main-message-icon" @click="dian()"></div>
    </div>
</template>

<script>
// import 'vant/lib/index.css';
// import { Search } from 'vant';
// import Vue from 'vue';
// Vue.use(Search);
export default {

    methods: {
        double() {
            this.$router.push("/double")
        },

        dian() {
            this.$router.push("/newscenter")
        }
    },
}
</script>

<style lang="sass" scoped>
    .main{
        width: 100%;
        height:3.6456rem; 
        display: flex;
        /* background-color: #f85823; */
        align-items: center;
        justify-content: space-between;
        background-image: linear-gradient(rgb(248, 81, 27), rgb(252, 226, 196) 250%);
        position: sticky;
        top:0;
        z-index:999;
    }

    .main-logo-icon{
        background: url(https://hshop.honorfile.com//uomcdn/CN/eoms/202211/0FB146A0403DE27850A217BEEB2B7C48.gif) center center / 100% no-repeat;
        width: 5rem;
        height: 1.5625rem;
        margin-right: -0.625rem;
    }
    .main-message-icon{
       background: url() no-repeat;
       display: block;
       width: 1.5rem;
       height: 1.5rem;
       background-size: 100%;
       margin-right: 1.625rem;
    }
    .main-input > .van-search__content {
        height: 30px;
        border: 1px solid grey;
    }
    .main-input {
         background-image: linear-gradient(rgb(248, 81, 27), rgb(252, 226, 196) 250%);
    }
</style>